﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace RecipeBuildUnits
{
    public partial class frmMain : Form

    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void frmMain_Load(object sender, EventArgs e)
        {
           
        }

        private void pictureBox2_Click(object sender, EventArgs e)
        {

        }

        private void exitToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (MessageBox.Show("Bạn có muốn thoát hay không  ", "Thông Báo", MessageBoxButtons.OKCancel, MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1) == DialogResult.OK)
            {
                this.Close();
                frmAdmin frmadmin = new frmAdmin();
                frmadmin.Show();
            } 
        }

        private void createRecipeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmAdd frmadd = new frmAdd();
            frmadd.Show();
        }

        private void modifiRecipeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmModify frmmodify = new frmModify();
            frmmodify.Show();
        }

        private void deleteRecipeToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmDelete frmdelete = new frmDelete();
            frmdelete.Show();
        }

        private void searchByRepiceToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmSearchRecipe frmsearch1 = new frmSearchRecipe();
            frmsearch1.Show();
        }

        private void searchByToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmSearchIngridient frmsearch2 = new frmSearchIngridient();
            frmsearch2.Show();
        }

        private void introductionToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmgioithieu frmgt = new frmgioithieu();
            frmgt.ShowDialog();
        }

        private void intructionsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Help.ShowHelp(this, "BaoCaoDoAn.docx");
        }

        private void manageIngridientToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmIng frming = new frmIng();
            frming.ShowDialog();
        }

        private void ingridientToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmrp1 Frmrp1 = new frmrp1();
            Frmrp1.ShowDialog();
        }
    }
}
